Don't squawk about A100[02345]'s for Forerunner.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 26 Sep 2005 13:14:39 +0000 (13:14 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 26 Sep 2005 13:14:39 +0000 (13:14 +0000)
(This code really should be taken behind the barn and shot...)

gpsbabel/jeeps/gpsapp.c

index d0504ec113286eb1f1785c50d6c00e520b32e83a..2c1c6b0d7bbb313df8704f6f626e4374c7c84a15 100644 (file)
@@ -430,6 +430,13 @@ static void GPS_A001(GPS_PPacket packet)
                         */
                    continue;
            }
+           else if (data < 1100)
+           {
+                       /* Stupid Garmin undocumented "A100[2345]" packets
+                        * as returned by Forerunner 301.
+                        */
+                   continue;
+           }
            else
            {
                GPS_Protocol_Error(tag,data);